#define _CRT_SECURE_NO_WARNINGS 1
int smallestEvenMultiple(int n) {
    int k = (n > 2) ? n : 2;
    while (1)
    {
        if ((k % n == 0) && (k % 2 == 0))
        {
            return k;
        }
        k *= 2;
    }
}
